package com.dreamlin.app.api

import com.dreamlin.app.net.SuperBean
import retrofit2.http.*

interface Api {



    //下面用协程实现
    /**
     * 获取父级组织
     */
    @POST
    @FormUrlEncoded
    suspend fun getParentBranchKt(
        @Url url: String,
        @Field("id") organizeId: String
    ): SuperBean<List<Object>>

    /**
     * 获取菜单
     */
    @POST
    suspend fun getMenusKt(
        @Url url: String,
        @Query("id") userId: String,
        @Query("menuPId") menuId: String
    ): SuperBean<List<Object>>


}